/*
** sum_params.c for  in /home/gueux_g/piscine/Jour_08
**
** Made by gregory gueux
** Login   <gueux_g@epitech.net>
**
** Started on  Thu Oct 11 04:06:49 2012 gregory gueux
** Last update Thu May 16 14:35:38 2013 adrien lamaison
*/

#include "../include/my.h"

char	*sum_params(int argc, char **argv)
{
  int	i;
  char	*str;

  i = 0;
  while (i < argc)
    {
      i += my_strlen(argv[i]);
      i++;
    }
  str = xmalloc(sizeof(i));
  i = 0;
  while (i < argc)
    {
      my_strcat(str, argv[i]);
      my_strcat(str, "\n");
      i++;
    }
  my_putstr(str);
  return (str);
}
